{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}

{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<css href="__PUBLIC__/css/admin/common.css"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}

<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->
<!-- [position] -->
	<include file="Library:filter_order_list"/>
<!-- [position] -->

<!-- [position] -->
	<include file="Core:QTip"/>
<!-- [position] -->

<form method="post" action="order.php?act=operate" name="listForm" onsubmit="return check()">
	<div class="list-div" id="listDiv">
		<table class="table" cellpadding="3" cellspacing="1" width="100%">
			<tbody>
				<tr>
					<th align="left">
						<input onclick="listTable.selectAll(this, &quot;checkboxes&quot;)" type="checkbox">
						<a href="javascript:listTable.sort('order_sn', 'DESC');">订单号</a>    
					</th>
					<th align="left">
						<a href="javascript:listTable.sort('add_time', 'DESC');">下单时间</a>
						<img src="__PUBLIC__/image/admin/sort_desc.gif">
					</th>
					<th align="left">
						<a href="javascript:listTable.sort('consignee', 'DESC');">收货人</a>
					</th>
					<th>
						<a href="javascript:listTable.sort('total_fee', 'DESC');" title="点击对列表排序">总金额</a>
					</th>
					<th>
						<a href="javascript:listTable.sort('order_amount', 'DESC');" title="点击对列表排序">应付金额</a>
					</th>
					<th>订单状态</th>
					<th>操作</th>
				</tr>
				<volist name="orderList" id="order">
				<tr>
					<td valign="top" nowrap="nowrap" align="left" style="background-color: rgb(255, 255, 255);"  id="groupby12">
						<input type="checkbox" name="checkboxes" value="{$order.order_sn}" />
						<a href="__URL__/order?order_id={$order.order_id}" id="order_{$okey}">
							{$order.order_sn}
							<if condition="$order['extension_code'] eq 'group_buy'">
								<br/>
								<div align="center" class="group_by" >
								团购
								</div>
							<elseif condition="$order['extension_code'] eq 'exchange_goods'"/>
								<br/>
								<div align="center">{$lang.exchange_goods}</div>
							</if>
						</a>
					</td>
					<td style="background-color: rgb(255, 255, 255);">
						{$order.buyer}<br>{$order.short_order_time}
					</td>
					<td align="left" valign="top" style="background-color: rgb(255, 255, 255);">
						<a href="mailto:ecshop@ecshop.com">{$order.consignee}</a>
						<if condition="$order['tel']">
							[TEL: {$order.tel}]
						</if>
						<br />
						{$order.address}
					</td>
					<td align="center" valign="top" nowrap="nowrap" style="background-color: rgb(255, 255, 255);">{$order.formated_total_fee}</td>
					<td align="center" valign="top" nowrap="nowrap" style="background-color: rgb(255, 255, 255);">{$order.formated_order_amount}</td>
					<td align="center" valign="top" nowrap="nowrap" style="background-color: rgb(255, 255, 255);">
						{$order.order_status_text}，
						{$order.pay_status_text}，
						{$order.shipping_status_text}
					</td>
					<td align="center" valign="top" nowrap="nowrap" style="background-color: rgb(255, 255, 255);">
						<a href="__URL__/order?order_id={$order.order_id}">查看</a>
					</td>
				</tr>
				</volist>
			</tbody>
		</table>
		<include file="Library:paginator"/>
	</div>
	<div>
		<input name="confirm"  class="btn btn-default" type="submit" id="btnSubmit" value="确认"  disabled="true" onclick="this.form.target = '_self'">
		<input name="invalid" class="btn btn-default" type="submit" id="btnSubmit1" value="无效" disabled="true" onclick="this.form.target = '_self'">
		<input name="cancel" class="btn btn-default" type="submit" id="btnSubmit2" value="取消"  disabled="true" onclick="this.form.target = '_self'">
		<input name="remove" class="btn btn-default" type="submit" id="btnSubmit3" value="移除"  disabled="true" onclick="this.form.target = '_self'">
		<input name="print" class="btn btn-default" type="submit" id="btnSubmit4" value="打印订单"  disabled="true" onclick="this.form.target = '_blank'">
		<input name="batch" type="hidden" value="1">
		<input name="order_id" type="hidden" value="">
	</div>
</form>


<script>
	// 
	$(".group_by").qtip({
		content:{
			text:'<div class="position mp15 mauto " style="width:500px;">'
					+'<span class="fl ltext">管理--订单列表</span>'
					+'<span class="fr rtext">'
					+	'<a href="/shop/admin.php/order/order_query" class="pageheader_r_text" style="">订单查询</a>'
					+'</span>'
					+'<div style="clear:both;"></div>'
				+'</div>',
		},
		style: { width: { min: 750 } }
	});
	
	
</script>



